package com.itrip.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;

import java.math.BigDecimal;
import java.util.Date;

import java.util.Date;


@Data
@TableName("itrip_comment")
public class ItripComment {

  @TableId(type = IdType.AUTO)
  @TableField("id")
  private Long id; //主键
  @TableField("hotelId")
  private Long hotelId; //如果产品是酒店的话 改字段保存酒店id
  @TableField("productId")
  private Long productId; //商品id
  @TableField("orderId")
  private Long orderId; //订单id
  @TableField("productType")
  private Long productType; //商品类型(0:旅游产品 1:酒店产品 2:机票产品)
  @TableField("content")
  private String content; //评论内容
  @TableField("userId")
  private Long userId; //用户编号
  @TableField("isHavingImg")
  private Long isHavingImg; //是否包含图片(当用户上传评论时检测)0:无图片 1:有图片
  @TableField("positionScore")
  private BigDecimal positionScore; //位置评分
  @TableField("facilitiesScore")
  private BigDecimal facilitiesScore; //设施评分
  @TableField("serviceScore")
  private BigDecimal serviceScore; //服务评分
  @TableField("hygieneScore")
  private BigDecimal hygieneScore; //卫生评分
  @TableField("score")
  private BigDecimal score; //综合评分
  @TableField("tripMode")
  private Long tripMode; //出游类型
  @TableField("isOk")
  private Long isOk; //是否满意（0：有待改善 1：值得推荐）
  @TableField("creationDate")
  private Date creationDate; 
  @TableField("createdBy")
  private Long createdBy; 
  @TableField("modifyDate")
  private Date modifyDate; 
  @TableField("modifiedBy")
  private Long modifiedBy; 

}
